package com.github.baichuan.application.scaffold.rest.dto.authentication;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

@Schema(title = "密码凭证")
@Getter
@Setter
public class PasswordCredential {
    @Schema(title = "登陆名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登陆名不能为空")
    private String loginName;

    @Schema(title = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "密码不能为空")
    private String password;


    @Schema(title = "用户IP地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户IP地址不能为空")
    private String ip;
}
